package hibernate.clientAccount;

import java.util.StringTokenizer;

import hibernate.roomSystem.Room;
import hibernate.roomSystem.RoomState;
import hibernate.billStream.Bill;
import hibernate.p.Pair;
import hibernate.p.Depositer;
import hibernate.p.Unit;

public class SingleClient extends AbstractClient implements Depositer{
	
	private ClientBasicInfo personalInfo;
	private boolean isCurrentInHotel;
	private Room currentRoom;
	private boolean isGroupMember;
	private ClientBillState clientBillState;
	
	public void setPersonalInfo(ClientBasicInfo Info){
		personalInfo=Info;
	}
	
	public ClientBasicInfo getPersonalInfo(){
		return personalInfo;
	}
	
	public void setIsCurrentInHotel(boolean ifIsCurrentInHotel){
		isCurrentInHotel=ifIsCurrentInHotel;
	}
	
	public boolean getIsCurrentInHotel (){
		return isCurrentInHotel;
	}
	
	public void setCurrentRoom(RoomState room){
		currentRoom=room.getRoom();
	}
	
	public RoomState getCurrentRoom(){
		return currentRoom == null ? null : currentRoom.getRoomState();
	}
	
	public void setIsGroupMember(boolean ifIsGroupMember){
		isGroupMember=ifIsGroupMember;
	}
	
	public boolean getIsGroupMember(){
		return isGroupMember;
	}
	
	public void setClientBillState(ClientBillState billState){
		clientBillState=billState;
	}
	
	public ClientBillState getClientBillState(){
		return clientBillState;
	}
	
	public String toString(){
		return this.personalInfo.toString()+" "+this.currentRoom.toString();
	}
	
}
